<div id="dataInfo"></div>
<script>
var tab={
	formName:'editForm',
	updateAction:'${mvc_ctx}/sys/menu.update',
    createAction:'${mvc_ctx}/sys/menu.create',
    moduleName:'菜单信息',
    isNew:${editObject.sid?exists?string("false","true")},
    sucessClue:"恭喜您，保存成功啦！",
    <#if viewMode?exists&&viewMode>
	isView:true,<#else>
	sendCallBack:updateTreeTableNode,</#if>
	content:[
		[	
			{type:'label',value:'菜单名称'},
			{type:'text',need:true,parameter:{type:'str'},name:'menuName',id:'menuName',maxlength:20,value:'${editObject.menuName?if_exists}'}
		],
		[
			{type:'label',value:'菜单URL'},
			{type:'text',name:'menuUrl',id:'menuUrl',maxlength:90,value:'${editObject.menuUrl?if_exists}'}
		],
		[
			{type:'label',value:'Controller完整类名'},
			{type:'text',width:'max',name:'controllerClass',id:'controllerClass',maxlength:100,value:'${editObject.controllerClass?if_exists}'}
		],
		[
			{type:'label',value:'上级菜单'},
			<@widget module="menu" type="SELECT_TREE" name="parentSid" value="${editObject.parentSid?if_exists}" removeValue="${editObject.sid?if_exists}"/>
		],
		[
			{type:'label',value:'是否有效'},
			[{type:'radio',value:'true',name:'enable',text:' 是 ' <#if !editObject.enable?exists||editObject.enable>,checked:true</#if>},
			{type:'radio',value:'false',name:'enable',text:' 否' <#if editObject.enable?exists&&!editObject.enable>,checked:true</#if>}
			]
		],
	    [
			{type:'label',value:'是否可见'},
			[{type:'radio',value:'true',name:'visible',text:' 是 ' <#if !editObject.visible?exists||editObject.visible>,checked:true</#if>},
			{type:'radio',value:'false',name:'visible',text:' 否' <#if editObject.visible?exists&&!editObject.visible>,checked:true</#if>}
			]
		],
		[
			{type:'label',value:'菜单简介'},
			{type:'textarea',value:'${stringTransfer(editObject.introduction?if_exists)}',name:'introduction',paramter:{}}
		],
		[
			{type:'label',value:'备注'},
			{type:'textarea',value:'${stringTransfer(editObject.remark?if_exists)}',name:'remark',maxLen:300}
		]
		<#if viewMode?exists&&viewMode>
		<#if is_work_flow?exists>
		,
		[
			{type:'label',value:'审批状态'},
			'${editObject.auditState?if_exists}'
		]
		</#if>
		,
		[
			{type:'label',value:'创建人'},
			'${editObject.creator?if_exists}'
		],
		[
			{type:'label',value:'创建时间'},
			'${editObject.createTime?if_exists}'
		],
		[
			{type:'label',value:'修改人'},
			'${editObject.editor?if_exists}'
		],
		[
			{type:'label',value:'修改时间'},
			'${editObject.editTime?if_exists}'
		]
		</#if>
	],
	tcss:[{align:'center',colspan:3	}]
};
jQuery('#dataInfo').createEditForm(tab);
</script>